import cv2
import numpy as np

ori_name = cv2.imread('lena_color.jpg')

if ori_name is not None:
    b, g, r = cv2.split(ori_name)

    img1 = cv2.merge([b, g, r])
    img2 = cv2.merge([g, r, b])
    img3 = cv2.merge([r, b, g])
    img4 = cv2.merge([g, b, r])
    img5 = cv2.merge([b, r, g])

    cv2.imshow('ori', ori_name)
    cv2.imshow('img1', img1)
    cv2.imshow('img2', img2)
    cv2.imshow('img3', img3)
    cv2.imshow('img4', img4)
    cv2.imshow('img5', img5)

    cv2.waitKey()
    cv2.destroyAllWindows()